package com.zy.web.domain;

import com.zy.common.core.domain.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "zy_ranks")
@org.hibernate.annotations.Table(appliesTo = "zy_ranks", comment = "队伍表")
@Where(clause = "deleted is null or deleted != true")
@SQLDelete(sql = "update zy_ranks set deleted = true where id = ? ")
public class ZyRanks extends BaseEntity {
    /**
     * 队伍名称
     */
    @Comment("队伍名称")
    @Column(name = "dwmc")
    private String dwmc;

    /**
     * 创建人
     */
    @Comment("创建人")
    @Column(name = "cjr")
    private String cjr;

    /**
     * 联系方式
     */
    @Comment("联系方式")
    @Column(name = "lxfs")
    private String lxfs;

    /**
     * 参赛人员
     */
    @Comment("参赛人员")
    @Column(name = "csry")
    private String csry;


}
